package com.damage.admin.mapper;

import com.damage.common.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IEmployeeMapper {

    Integer insert(Employee employee);

    List<Employee> findByDepartment(Integer departmentNumber);

    List<Employee> findAll();

    List<Employee> findByDepartmentAndName(@Param("department") Integer department,
                                           @Param("name") String name);

    Employee findById(Integer id);

    Employee findByName(String name);

    List<Employee> findLikeName(String name);

    Integer update(Employee employee);

    Integer deleteById(Integer id);
}
